#! /bin/bash
# 主机检测

for ipAddr in $(cat pa-hosts.txt | awk '{print $2}')
do
  echo "==================  $ipAddr  ===================="
  ping -c 1 $ipAddr
  echo
done

echo
echo "Ping success!"
